<template>
	<scroll-view scroll-x="true" class="sheet_box">
		<view class="list">
			<view v-for="(item, index) in recommend_sheet" :key="index" class="item">
				<view class="cover_box">
					<image :src="item.cover" mode="aspectFill" class="cover"></image>
					<view class="play">
						<play-btn txt="51.2W"></play-btn>
					</view>
				</view>
				<view class="u-line-2 u-font-24 dec">{{item.dec}}</view>
			</view>
		</view>
	</scroll-view>
</template>

<script>
	export default {
		name: "recommend-sheet",
		props: {
			recommend_sheet: {
				type: Array,
				default: []
			}
		},
		data() {
			return {

			};
		}
	}
</script>

<style lang="scss" scoped>
	.sheet_box {
		width: 750rpx;

		.list {
			padding-left: 10rpx;
			padding-right: 20rpx;
			width: max-content;
			display: flex;
			flex-wrap: nowrap;
			align-items: center;

			.item {
				margin-left: 20rpx;
				width: 200rpx;

				.cover_box {
					position: relative;

					.cover {
						width: 200rpx;
						height: 200rpx;
						border-radius: 10rpx;
						background-color: $xj-theme;
					}

					.play {
						position: absolute;
						bottom: 24rpx;
						right: 12rpx;
					}
				}

			}
		}
	}
</style>
